#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>
#include <QMenu>
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();
    QString planText="距离计划结束还有：";
    QString planTime="";
    void reflush();
    void reflushAdd();
    QTimer *t5;
    QTimer *t6;
    QMenu *winMenu;

private slots:
    void on_pushButton_5_clicked();
    void resivtext(QString text);
    void resivtime(QString time);

    void on_Widget_customContextMenuRequested(const QPoint &pos);

private:
    Ui::Widget *ui;
    int n1=0;
    int n2=0;
    int agreeNum=10;
};

#endif // WIDGET_H
